{#extends file="./extend/mobile.htm"#} 
{#block name="title"#}{#$siteConfig.title|escape#}{#/block#}
{#block name="back"#}<a href="{#$smarty.get.r|escape|default:'profile.php'#}" data-icon="arrow-l" data-transition="slide" data-direction="reverse">返回</a>{#/block#}
{#block name="action"#}
	<a href="./" data-icon="home" data-iconpos="notext" class="ui-btn-right" data-ajax="false">Home</a>
{#/block#}

{#block name="content"#}

<h2>修改账户</h2>
{#if $smarty.server.REQUEST_METHOD=='POST'&&!$error#}
<p>账户已修改</p>
{#else#}
<form method="post" action="profile.php?action=basic">
	{#if $error#}<p class="error">{#$error|escape#}</p>{#/if#}
	<div data-role="fieldcontain">
		<label for="notifyNewPromotion">通知新任务: </label>
		<select name="member_notifyNewPromotion" id="notifyNewPromotion" data-role="slider">
			<option value="{#Member::NOTIFYNEWPROMOTION_NO#}" {#if $member->notifyNewPromotion()==Member::NOTIFYNEWPROMOTION_NO#}selected="selected"{#/if#}>禁用</option>
			<option value="{#Member::NOTIFYNEWPROMOTION_YES#}" {#if $member->notifyNewPromotion()==Member::NOTIFYNEWPROMOTION_YES#}selected="selected"{#/if#}>启用</option>
		</select>
	</div>
	<div data-role="fieldcontain">
		<label for="notifyNewGift">通知新Gift: </label>
		<select name="member_notifyNewGift" id="notifyNewGift" data-role="slider">
			<option value="{#Member::NOTIFYNEWGIFT_NO#}" {#if $member->notifyNewGift()==Member::NOTIFYNEWGIFT_NO#}selected="selected"{#/if#}>禁用</option>
			<option value="{#Member::NOTIFYNEWGIFT_YES#}" {#if $member->notifyNewGift()==Member::NOTIFYNEWGIFT_YES#}selected="selected"{#/if#}>启用</option>
		</select>
	</div>

	<input type="submit" data-role="button" data-theme="b" value="修改">
</form>
{#/if#}
{#/block#}